package com.aidong.coupons.biz.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aidong.coupons.biz.MstCouponsBiz;
import com.aidong.coupons.dao.MstCouponsDao;
@Service("mstCouponsBiz")
public class MstCouponsBizImpl implements MstCouponsBiz{
	
	private MstCouponsDao mstCouponsDao;
	
	@Autowired
	public void setMstCouponsDao(MstCouponsDao mstCouponsDao) {
		this.mstCouponsDao = mstCouponsDao;
	}


	/**
	 * 代金券是否可用
	 */
	@Override
	public Map<String, Object> couponsUsable(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return mstCouponsDao.couponsUsable(map);
	}


	@Override
	public int selectCouponsReverse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return mstCouponsDao.selectCouponsReverse(map);
	}


	@Override
	public void setCouponsCanUse(Map<String, Object> map) {
		// TODO Auto-generated method stub
		mstCouponsDao.setCouponsCanUse(map);
	}


	@Override
	public Map<String, Object> getCouponsInfo(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return mstCouponsDao.getCouponsInfo(map);
	}


}
